<?php defined('BASEPATH') or exit('No direct script access allowed');

/**
 * Navigation Module
 *
 * @author PyroCMS Dev Team
 * @package PyroCMS\Core\Modules\Navigation
 */
class Module_Tour extends Module {

	public $version = '1.0';

	public function info()
	{
		return array(
			'name' => array(
				'en' => 'Tour'),
			'description'=>'This is for description'
			);
	}
	
	public function install(){
			/*$this->dbforge->drop_table('tbl_tour');
			
			$tables = array(
			'tbl_tour' => array(
				'id' => array('type' => 'INT', 'constraint' => 11, 'auto_increment' => true, 'primary' => true),
				'tour_id' => array('type' => 'VARCHAR', 'constraint' => 220,),
				'price' => array('type' => 'VARCHAR', 'constraint' => 220, 'key' => true),
				'field1'=> array('type' =>'VARCHAR', 'constraint'=>220, 'key' =>true),
				'field2'=>array('type' =>'VARCHAR', 'constraint'=>220, 'key' =>true)
				)
			);
			
			if ( ! $this->install_tables($tables))
		{
			return false;
		}*/
			
			return true;
		}
	
	public function uninstall()
	{
		// This is a core module, lets keep it around.
		return false;
	}
	
	public function upgrade($old_version)
	{
		return true;
	}
	
	public function tour(){
		
		$test = "This is for testing tour";
		
		$data["test"] = $test;
		
		return $data;
		}
}